write.csv(captaincy,"NewCaptaincy.csv",row.names=FALSE)
Title
Question
write.csv(captaincy,"NewCaptaincy.csv",row.names=FALSE)
write.csv(captaincy,"NewCaptaincy.csv")
what is the function of above statement. I didnot find any other screen.Please elaborate me and tell me what is the output of these two statements.
R Introduction-to-Data-Frames-in-R 12-13 min 30-40 sec
Answers:
write.csv is used to export a data frame to CSV in R. Here, we are trying to export the data frame captaincy as a CSV file named NewCaptaincy.csv.
row.names is a logical argument, which is set to TRUE when we want to export row names as well
Login to add comment